package com.nativetalk.dao;

import com.nativetalk.bean.TdNtTeacherLabel;
import com.nativetalk.bean.label.TdNtTeacherLabelList;
import com.nativetalk.bean.label.TdNtTeacherLabelTeacherList;

import java.util.List;
import java.util.Map;

/**
 * Created by lizhun on 16/7/29.
 */
@MyBatisRepository
public interface TdNtTeacherLabelDao {
    /**
     * @Purpose  根据教师id及标签类别查找标签
     * @version  4.0
     * @author   lizhun
     * @param    map
     * @return   List<TdNtTeacherLabelList>
     */
    public List<TdNtTeacherLabelList> findTdNtTeacherListTeaIdAndType(Map<String, Object> map);
    /**
     * @Purpose  查找教师标签
     * @version  4.0
     * @author   lizhun
     * @param    tea_id
     * @return   List<TdNtTeacherLabelList>
     */
    public List<TdNtTeacherLabelList> findTdNtTeacherListTeaIdCn(int tea_id);
    /**
     * @Purpose  查找教师英文标签
     * @version  4.0
     * @author   lizhun
     * @param    tea_id
     * @return   List<TdNtTeacherLabelTeacherList>
     */
    public List<TdNtTeacherLabelTeacherList> findTdNtTeacherListTeaIdEn(int tea_id);
    /**
     * @Purpose  添加标签
     * @version  4.0
     * @author   lizhun
     * @param    tdNtTeacherLabel
     * @return   void
     */
    public void insert(TdNtTeacherLabel tdNtTeacherLabel);
    /**
     * @Purpose  更新标签
     * @version  4.0
     * @author   lizhun
     * @param    tdNtTeacherLabel
     * @return   void
     */
    public void update(TdNtTeacherLabel tdNtTeacherLabel);
    /**
     * @Purpose  添加标签
     * @version  4.0
     * @author   lizhun
     * @param    tdNtTeacherLabel
     * @return   void
     */
    public void delete(TdNtTeacherLabel tdNtTeacherLabel);

    /**
     * 根据标签英文名查询dict_id(标签id)
     *
     * @param lab_en_name
     * @return
     */
    Integer findDictIdByLabelEnName(String lab_en_name);
}
